import {Effect} from "../IEffectContainer";
import {logUtil} from "../../util/logUtil";

export class shiting extends Effect {

    apply(target: any) {
        logUtil.instance.log("test002","时停开始")
        //新增判断处理
        this.timerId = setTimeout(() => {
            logUtil.instance.log("test002","时停结束")
        }, this.duration);
    }

    remove(target: any) {
        logUtil.instance.log("test002","时停终止")
        // 清除定时器，打断动作1
        clearTimeout(this.timerId);
        // 重置定时器ID
        this.timerId = null;
    }
}
